<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var inputs = document.getElementsByTagName('input');
				console.log(inputs);
				console.log(inputs[1]);
			}
		</script>
	</head>
	<body>
		<input type="text"  id="userName" value="gao"/><br/>
		<input type="text"  id="userEmail" value="gao@163.com"/><br/>
	</body>
</html>
